//服务端  回调函数
#include "staff.h"  
int callback(void*pard,int f_num,char** f_valua,char **f_name)
{
	printf("------------%s-----------%d.\n",__func__,__LINE__);
	int fd = *(int *)pard;
	char buf[1024] = {0};
	int i = 0;
	for(i = 0;i < f_num ;i++){
		strcat(buf,f_name[i]);
		strcat(buf,":");
		strcat(buf,f_valua[i]);
		strcat(buf,"\n");
	}
	send(fd,buf,sizeof(buf),0);
	printf("%s\n",buf);
	return 0;
}

